<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title></title>
<!-- Bootstrap -->
<link href="<%=request.getContextPath()%>/styles/skin/new/css/bootstrap.css" rel="stylesheet">
<link href="<%=request.getContextPath()%>/styles/skin/new/css/styles.css" rel="stylesheet" type="text/css">
<%@ include file="/pages/inc/taglibs.jsp"%>
<script type="text/javascript" src="<%=request.getContextPath()%>/js/jquery-1.11.3.min.js"></script>
<script type="text/javascript" src="<%=request.getContextPath()%>/js/bootstrap.js"></script>
<script src="https://use.typekit.net/jiw4rwn.js"></script>
<script>
	try {
		Typekit.load({
			async : true
		});
	} catch (e) {
	}
</script>
<!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries -->
<!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
<!--[if lt IE 9]>
		  <script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script>
		  <script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
		<![endif]-->
</head>
<body style="padding-top: 50px">
	<nav class="navbar navbar-default navbar-fixed-top">
		<div class="container">
			<!-- Brand and toggle get grouped for better mobile display -->
			<div class="navbar-header">
				<button type="button" class="navbar-toggle collapsed"
					data-toggle="collapse" data-target="#topFixedNavbar1"
					aria-expanded="false">
					<span class="sr-only">Toggle navigation</span><span
						class="icon-bar"></span><span class="icon-bar"></span><span
						class="icon-bar"></span>
				</button>
				<a class="navbar-brand" href="#">Robotax</a>
			</div>
			<!-- Collect the nav links, forms, and other content for toggling -->
			<div class="collapse navbar-collapse" id="topFixedNavbar1">
				<ul class="nav navbar-nav">
					<li class="dropdown"><a href="#" class="dropdown-toggle"
						data-toggle="dropdown" role="button" aria-haspopup="true"
						aria-expanded="false"><span><img
								src="images/mdpi/menu@1x.png" class="navmenu"></span></a>
						<ul class="dropdown-menu">
							<li><a href="#">占位符</a></li>
							<li role="separator" class="divider"></li>
							<li><a href="#">占位符</a></li>
						</ul></li>
				</ul>
				<ul class="nav navbar-nav navbar-right">
					<li><a href="#"><img src="images/mail.png" class="mail"></a></li>
					<li><a href="#"><img src="images/notifcation.png"
							class="notification"></a></li>
					<li class="dropdown"><a href="#" class="dropdown-toggle"
						data-toggle="dropdown" role="button" aria-haspopup="true"
						aria-expanded="false"><img src="images/user.png" class="user"><span
							class="welcomeuser">欢迎用户</span><span class="caret"></span></a>
						<ul class="dropdown-menu">
							<li><a href="#">登出</a></li>
							<li role="separator" class="divider"></li>
							<li><a href="#">设置</a></li>
						</ul></li>
				</ul>
			</div>
			<!-- /.navbar-collapse -->
		</div>
		<!-- /.container-fluid -->
	</nav>
	<!-- dashboard --->
	<div class="container dashboard">
		<div class="container navbutton">
			<div class="row" id="menu">
				<c-rt:forEach items="${menuList}" var="orgMenu">
					<a href="javascript:void(0)" type="button" class="btn btn-primary"
						onclick="fileRight('${orgMenu.menuUrl}', this)">${orgMenu.menuName}</a>
				</c-rt:forEach>
			</div>
		</div>

		<div id="container"></div>
	</div>
	<!-- /dashboard --->

	<!--footer-->
	<footer class="footer" style="margin-top: 100px">
		<div class="container-fluid">
			<div class="row">
				<h3>Copyright &copy; Robotax</h3>
			</div>
		</div>

	</footer>
	<!--footer-->
	<!-- jQuery (necessary for Bootstrap's JavaScript plugins) -->
	<script src="js/jquery-1.11.3.min.js"></script>

	<!-- Include all compiled plugins (below), or include individual files as needed -->
	<script src="js/bootstrap.js"></script>


	<script type="text/javascript">
		function fileRight(url, object) {
			$("#menu").children().each(function(i) {
				$(this).removeClass();
				$(this).addClass("btn btn-primary");
			});
			$(object).addClass("btn btn-primary active");
			$.ajax({
				url : url,
				data : {
				//userName : userName,
				//password : password
				},
				type : 'POST',
				dataType : 'html',
				success : function(data) {
					$("#container").html("");
					$("#container").html(data);
				}
			});

		}
		
		
	</script>
</body>
</html>